<!--<?php
print <<<EOT
-->
<html>
<head>
<link href="{$baseconfig[mod]}/images/index.css" rel="stylesheet"
	type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="inc/js/jquery.js" type="text/javascript"></script>
<script src="inc/js/jquery-chekform.js" type="text/javascript"></script>
<script src="inc/js/jquery-kwor.js" type="text/javascript"></script>
<!---->

<style type="text/css">
#itab {
	width: 300px;
	height: 30px;
	border: #000000 hidden 1px
}

#itab span {
	margin-left: 10px;
	cursor: pointer;
	float: left
}

#itab .selected {
	color: #33CCFF
}

.hidd {
	display: none
}
</style>

<script language="javascript">

$(document).ready(function(){
		    $("#itab span").click(
			function(){
			$(this).addClass("selected").siblings().removeClass();
			$("#cont > table").slideUp("1500").eq($("#itab span").index(this)).slideDown("1500");
			}		
			);    
		})
</script>
</head>
<body>
<form name="form1" method="post" action="{$baseconfig[dourldefault]}">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="100%" class="list black" colspan="2">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td width="40%" id="itab" align="left"><span>基本信息</span> <span>团购描述</span>
						<span>大家说</span></td>
						<td width="46%" align="center" class="black">信息设置</td>
						<td width="14%"><a href="javascript:history.go(-1)"><img
							src="{$baseconfig[mod]}/images/list_add3.gif" width="84"
							height="26"
							onMouseOver="this.src='{$baseconfig[mod]}/images/list_add4.gif'"
							onMouseOut="this.src='{$baseconfig[mod]}/images/list_add3.gif'"
							border="0" /></a></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td class="list-add1 pl8" colspan="2" style="display: none"
					id="errmsg"></td>
			</tr>
		</table>
		</td>
	</tr>

	<tr>
		<td id="cont">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="40" align="right" class="list-add1">名称：</td>
				<td class="list-add1 pl8"><input name="fm_name" type="text"
					size="30" value="{$res[name]}" id="fm_name" /></td>
			</tr>
			<tr>
				<td height="40" align="right" class="list-add1">城市：</td>
				<td class="list-add1 pl8">{$citylist} </td>
			</tr>


			<tr>
				<td height="40" align="right" class="list-add1">是否关闭：</td>
				<td class="list-add1 pl8">{$fm_is_close}</td>
			</tr>

			<tr>
				<td height="40" align="right" class="list-add1">首页显示：</td>
				<td class="list-add1 pl8">{$fm_is_index_show}</td>
			</tr>

			<tr>
				<td height="40" align="right" class="list-add1">所属商家：</td>
				<td class="list-add1 pl8">{$menchantslist}</td>
			</tr>
			<tr>
				<td height="40" align="right" class="list-add1">最小团购：</td>
				<td class="list-add1 pl8"><input name="fm_smallnum" type="text"
					size="6" id="fm_smallnum" value="{$res[smallnum]}" /></td>
			</tr>

			<tr>
				<td height="40" align="right" class="list-add1">最大团购：</td>
				<td class="list-add1 pl8"><input name="fm_bignum" type="text"
					size="6" id="fm_bignum" value="{$res[bignum]}" /></td>
			</tr>

			<tr>
				<td height="40" align="right" class="list-add1">结束时间：</td>
				<td class="list-add1 pl8"><input name="fm_overtime" type="text"
					id="fm_overtime" value="{$res[overtime]}" /></td>
			</tr>
			
			<tr>
				<td height="40" align="right" class="list-add1">团购卷有效期至：</td>
				<td class="list-add1 pl8"><input name="fm_couponovertime" type="text"
					id="fm_couponovertime" value="{$res[couponovertime]}" /></td>
			</tr>


			<tr>
				<td height="40" align="right" class="list-add1">原价：</td>
				<td class="list-add1 pl8"><input name="fm_costprice"
					type="text" id="fm_costprice" value="{$res[costprice]}" /></td>
			</tr>

			<tr>
				<td height="40" align="right" class="list-add1">团购价：</td>
				<td class="list-add1 pl8"><input name="fm_groupprice"
					type="text" id="fm_groupprice" value="{$res[groupprice]}" /></td>
			</tr>


			<tr>
				<td height="40" align="right" class="list-add1">产品图片：</td>
				<td class="list-add1 pl8"><!-- 此处js制动生成上传文本框 --> {$imgbox}</td>
			</tr>


			<!-- 
			<tr>
				<td height="40" align="right" class="list-add1">说明：</td>
				<td class="list-add1 pl8">
			{$iexplain}
				</td>
			</tr>
 -->
		</table>


		<!-- 第二栏 -->

		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			class="hidd">




			<tr>
				<td height="40" align="right" class="list-add1">名称描述：</td>
				<td class="list-add1 pl8">{$name_dic}</td>
			</tr>

			<tr>
				<td height="40" align="right" class="list-add1">详细描述：</td>
				<td class="list-add1 pl8">{$description}</td>
			</tr>



			<tr>
				<td height="40" align="right" class="list-add1">其他描述：</td>
				<td class="list-add1 pl8">{$other_dic}</td>
			</tr>


		</table>

		<!-- 第三栏 -->

		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			class="hidd">



			<tr>
				<td height="40" align="right" class="list-add1">他们说：</td>
				<td class="list-add1 pl8">{$them_says}</td>
			</tr>


			<tr>
				<td height="40" align="right" class="list-add1">我们说：</td>
				<td class="list-add1 pl8">{$we_syas}</td>
			</tr>


		</table>
		</td>
	</tr>
	<tr>
		<td align="center" class="list-add1" colspan="2" style="padding: 20px">
		<!--
EOT;
if ($res[id]){
print <<<EOT
--> <input type="hidden" name="modaction" value="update" /> <input
			type="hidden" name="fm_id" value="$res[id]" /> <!--
EOT;
}else{print <<<EOT
--> <input type="hidden" name="modaction" value="insert" /> <!-- 
EOT;
}print <<<EOT
--> <input type="submit"
			value="提&nbsp;&nbsp;交&nbsp;&nbsp;信&nbsp;&nbsp;息" name="sub" id="sub">

		</td>
	</tr>
</table>
</form>

<table width="102%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>

</body>
</html>
<!-- 
EOT;
?>-->